package com.lalameow.packet.pojo;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * 创建人: 陈刚
 * 日期: 2018/5/10
 * 时间: 21:07
 * 功能：请进行修改
 */
@Data
public class MdsInfo {
    private String mdsName;
    private String mdsMd5;
    private String mdsHash;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MdsInfo mdsInfo = (MdsInfo) o;
        if (mdsMd5 != null ? !mdsMd5.equals(mdsInfo.mdsMd5) : mdsInfo.mdsMd5 != null) return false;
        return mdsHash != null ? mdsHash.equals(mdsInfo.mdsHash) : mdsInfo.mdsHash == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (mdsMd5 != null ? mdsMd5.hashCode() : 0);
        result = 31 * result + (mdsHash != null ? mdsHash.hashCode() : 0);
        return result;
    }
}
